/**
 * TO BE DETERMINED 
 */
package org.eichar.client;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.StackPanel;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Just directly creates the classes. Nothing tricky
 * 
 * @author Jesse
 */
public class WidgetFactoryImpl implements WidgetFactory {

    /**
     * @see org.eichar.client.WidgetFactory#createStackPanel()
     */
    public StackPanel createStackPanel() {
        return new StackPanel();
    }

    /**
     * @see org.eichar.client.WidgetFactory#createVerticalPanel()
     */
    public VerticalPanel createVerticalPanel() {
        return new VerticalPanel();
    }

    /**
     * @see org.eichar.client.WidgetFactory#createButton(java.lang.String)
     */
    public Button createButton(String text) {
        return new Button(text);
    }

    /**
     * @see org.eichar.client.WidgetFactory#createHorizontalPanel()
     */
    public HorizontalPanel createHorizontalPanel() {
        return new HorizontalPanel();
    }

    /**
     * @see org.eichar.client.WidgetFactory#createLabel(java.lang.String)
     */
    public Label createLabel(String text) {
        return createLabel(text, false);
    }

    /**
     * @see org.eichar.client.WidgetFactory#createLabel(java.lang.String,
     *      boolean)
     */
    public Label createLabel(String text, boolean wrapLabel) {
        return new Label(text, wrapLabel);
    }

    /**
     * @see org.eichar.client.WidgetFactory#createTextBox()
     */
    public TextBox createTextBox() {
        return new TextBox();
    }

    /**
     * @see org.eichar.client.WidgetFactory#createTabPanel()
     */
    public TabPanel createTabPanel() {
        return new TabPanel();
    }

    /**
     * @see org.eichar.client.WidgetFactory#createHTML(java.lang.String)
     */
    public HTML createHTML(String html) {
        return new HTML(html);
    }

}
